package com.ziroom.client;

public class ZiruServiceProxy implements com.ziroom.client.ZiruService {
  private String _endpoint = null;
  private com.ziroom.client.ZiruService ziruService = null;
  
  public ZiruServiceProxy() {
    _initZiruServiceProxy();
  }
  
  public ZiruServiceProxy(String endpoint) {
    _endpoint = endpoint;
    _initZiruServiceProxy();
  }
  
  private void _initZiruServiceProxy() {
    try {
      ziruService = (new com.ziroom.client.ZiruContractInterfaceServiceLocator()).getziruServicePort();
      if (ziruService != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)ziruService)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)ziruService)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (ziruService != null)
      ((javax.xml.rpc.Stub)ziruService)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public com.ziroom.client.ZiruService getZiruService() {
    if (ziruService == null)
      _initZiruServiceProxy();
    return ziruService;
  }
  
  public java.lang.String house(com.ziroom.client.HouseData arg0) throws java.rmi.RemoteException{
    if (ziruService == null)
      _initZiruServiceProxy();
    return ziruService.house(arg0);
  }
  
  public java.lang.String customer(com.ziroom.client.CustomerData arg0) throws java.rmi.RemoteException{
    if (ziruService == null)
      _initZiruServiceProxy();
    return ziruService.customer(arg0);
  }
  
  public java.lang.String room(com.ziroom.client.RoomData arg0) throws java.rmi.RemoteException{
    if (ziruService == null)
      _initZiruServiceProxy();
    return ziruService.room(arg0);
  }
  
  public java.lang.String reciveContract(com.ziroom.client.ContractData arg0) throws java.rmi.RemoteException{
    if (ziruService == null)
      _initZiruServiceProxy();
    return ziruService.reciveContract(arg0);
  }
  
  public java.lang.String outContract(com.ziroom.client.ContractData arg0) throws java.rmi.RemoteException{
    if (ziruService == null)
      _initZiruServiceProxy();
    return ziruService.outContract(arg0);
  }
  
  public java.lang.String channContract(com.ziroom.client.ContractData arg0) throws java.rmi.RemoteException{
    if (ziruService == null)
      _initZiruServiceProxy();
    return ziruService.channContract(arg0);
  }
  
  public java.lang.String reservation(com.ziroom.client.HouseData arg0) throws java.rmi.RemoteException{
    if (ziruService == null)
      _initZiruServiceProxy();
    return ziruService.reservation(arg0);
  }
  
  public java.lang.String invalidContract(com.ziroom.client.ContractData arg0) throws java.rmi.RemoteException{
    if (ziruService == null)
      _initZiruServiceProxy();
    return ziruService.invalidContract(arg0);
  }
  
  public java.lang.String modifyContract(com.ziroom.client.ContractData arg0) throws java.rmi.RemoteException{
    if (ziruService == null)
      _initZiruServiceProxy();
    return ziruService.modifyContract(arg0);
  }
  
  public java.lang.String roomPictures(com.ziroom.client.RoomData arg0) throws java.rmi.RemoteException{
    if (ziruService == null)
      _initZiruServiceProxy();
    return ziruService.roomPictures(arg0);
  }
  
  public java.lang.String delRoomRegion(java.lang.Integer arg0, java.lang.String arg1, java.lang.Integer arg2) throws java.rmi.RemoteException{
    if (ziruService == null)
      _initZiruServiceProxy();
    return ziruService.delRoomRegion(arg0, arg1, arg2);
  }
  
  public java.lang.String roomConfigItem(com.ziroom.client.RoomData arg0) throws java.rmi.RemoteException{
    if (ziruService == null)
      _initZiruServiceProxy();
    return ziruService.roomConfigItem(arg0);
  }
  
  public void setContractService(com.ziroom.client.ContractService arg0) throws java.rmi.RemoteException{
    if (ziruService == null)
      _initZiruServiceProxy();
    ziruService.setContractService(arg0);
  }
  
  public void setRoomService(com.ziroom.client.RoomService arg0) throws java.rmi.RemoteException{
    if (ziruService == null)
      _initZiruServiceProxy();
    ziruService.setRoomService(arg0);
  }
  
  
}